package com.esisa.beans;
import java.util.Date;


public class Etudiant {
	
	private String nom;
	private String prenom;
	private String chemin;
	private String age;
	private String absence;
	private String presence;
	private String retard;
	private String remarque;

	
	
	public Etudiant(String line) {
		String t[]= line.split("&");
		System.out.println(t.length);
		if(t.length>=9){
			nom=t[0];
			prenom=t[1];
			chemin=t[2];
			age=t[3];
			absence=t[4];
			presence=t[5];
			retard=t[6];
			remarque=t[7];
		
		//	chemin=t[15];
			
		}
	}
	
	

		

	public Etudiant() {
		super();
	}
	


	public Etudiant(String nom, String prenom, String chemin, String age,
			String absence, String presence, String retard, String remarque) {
		super();
		this.nom = nom;
		this.prenom = prenom;
		this.chemin = chemin;
		this.age = age;
		this.absence = absence;
		this.presence = presence;
		this.retard = retard;
		this.remarque = remarque;
	}
	
	





	public String getNom() {
		return nom;
	}





	public void setNom(String nom) {
		this.nom = nom;
	}





	public String getPrenom() {
		return prenom;
	}





	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}





	public String getChemin() {
		return chemin;
	}





	public void setChemin(String chemin) {
		this.chemin = chemin;
	}





	public String getAge() {
		return age;
	}





	public void setAge(String age) {
		this.age = age;
	}





	public String getAbsence() {
		return absence;
	}





	public void setAbsence(String absence) {
		this.absence = absence;
	}





	public String getPresence() {
		return presence;
	}





	public void setPresence(String presence) {
		this.presence = presence;
	}





	public String getRetard() {
		return retard;
	}





	public void setRetard(String retard) {
		this.retard = retard;
	}





	public String getRemarque() {
		return remarque;
	}





	public void setRemarque(String remarque) {
		this.remarque = remarque;
	}





	@Override
	public String toString() {
		return "Document < " + this.chemin + " >{"+"\n"+
				"Nom :"+this.nom+"\n"+
				"Prenom :"+this.prenom+"\n"+
				"Chemin :"+this.chemin+"\n"+
				"Age :"+this.age+"\n"+
				"Absence :"+this.absence+"\n"+
				"Presence :"+this.presence+"\n"+
				"Retard :"+this.retard+"\n"+
				"Remarque :"+this.remarque+"\n"+
				"}\n";
	}
	
	
	
}
